﻿using System;

namespace LeanEngine.Data.Linq.Language
{
    public class CompareToken : IQueryToken
    {
        #region PropertyInfo Members

        public ColumnToken Field { get; set; }
        public string Operator { get; set; }
        public string CompareValue { get; set; }
        public string CombineOperator { get; set; }

        #endregion

        #region ILanguageToken Members

        public virtual string GetStatement()
        {
            return this.Field.GetStatement() + " " + this.Operator + " " + this.CompareValue + " " + CombineOperator;
        }

        #endregion
    }
}
